<template>
  <div class="container">
    <headers />
    <top />
    <div class="cont">
    <div class="list">
        <div class="prise" >选择时段</div>
        <div class="type">{{value}}<img src="@/assets/select.png" alt="" class="select" @click="showPicker = true"></div>
        <van-popup v-model="showPicker" position="bottom">
          <van-picker
            show-toolbar
            :columns="columns"
            @cancel="showPicker = false"
            @confirm="onConfirm"
          />
        </van-popup>
     </div>
     <div class="list add">
        <div class="type"><img src="@/assets/add.png" alt="" class="add-btn"></div>
        <div class="add-wz">添加时段</div>
     </div>
       <div class="next-btn" @click="routerLink(`partner`)">完成,去支付</div>
       <div class="back" @click="routerLink(`home`)">上一步</div>
    </div>
  </div>
</template>
<script>
import headers from "@/components/header";
import top from "@/components/top";
export default {
  components: {
    headers: headers,
    top: top
  },
   data() {
    return {
      value: '',
      showPicker: false,
      columns: ['10月3日 周一 3000元', '10月3日 周一 3000元', '10月3日 周一 3000元', '10月3日 周一 3000元', '10月3日 周一 3000元'],
      checked: false,
    }
  },
   methods:{
    onConfirm(value) {
      this.value = value;
      this.showPicker = false;
    },
     routerLink(href){
         this.$router.push({
             name:href
         })
       } 
    }
};
</script>
<style lang="less" scoped>
.container {
  width: 95%;
  margin: 0 auto;
  border: 1px solid;
  .header {
    width: 95%;
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    span {
      padding-right: 10px;
    }
  }
  .top {
    display: flex;
    // justify-content: space-between;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    .icon {
      width: 50%;
      img {
        width: 100%;
      }
    }
    .wz {
      font-size: 23px;
      font-weight: bold;
    }
    .rule-btn {
      width: 5%;
      margin-top: -50px;
      img {
        width: 100%;
      }
    }
  }
  .cont {
    width: 100%;
    .list {
      border: 2px solid #487cfb;
      display: flex;
      justify-content:space-between;
      padding: 15px;
      margin: 15px 10px;
      border-radius: 6px;
    }
    .prise {
      font-size: 14px;
      color: #b6b6b6;
    }
    .type {
      font-size: 16px;
      font-weight: bold;
      color: #487cfb;
    }
    .num {
      font-size: 14px;
      color: #487cfb;
      .show {
        color: #b6b6b6;
        padding-left: 5px;
      }
    }
    .rule {
      width: 94%;
      height: 100px;
      padding: 5px;
      box-sizing: border-box;
    }
    .gz-wz {
      padding: 0px 10px;
      font-size: 14px;
      color: #b6b6b6;
    }
    .convert{
        justify-content: space-between;
        padding:15px;
        box-sizing: border-box;
    }
    .select{
        width: 17px;
    }
    .next-btn{
        width: 95%;
        margin: 0 auto;
        padding: 15px 0;
        background: #487cfb;
        color: #fff;
        text-align: center;
        margin-bottom:2%;
        font-size: 14px;
        border-radius: 6px;
    }
    .back{
        text-align: center;
        color: #487cfb;
        font-size: 14px;
    }
    .add{
        justify-content: center;
        align-items: center;
         vertical-align: middle;
        .add-btn{
        width: 20px;
        vertical-align: middle;
       }
       .add-wz{
          padding:3px 5px 0;
       }
    }
  
  }
}
</style>